var id = getQueryParms('id');
var vum = new Vue({
    el: '#app',
    data: {
        data: '',
        hotList: '',
        typeList: '',
        //类型列表
    },
    methods: {
        getData: function() {
            var _self = this;
            $.ajax({
                type: 'GET',
                url: reqHost + '/v1/article/detail?id=' + id,
                success: function(data) {
                    _self.data = data.data;
                    console.log(data.status);
                },
                error: function(data) {
                    console.log("读取jsonName error!");
                }
            });
        },
        getType: function() {
            var _self = this;
            $.ajax({
                type: 'GET',
                url: reqHost + '/v1/arttype/index',
                success: function(data) {
                    _self.typeList = data;
                    console.log(data);
                },
                error: function(data) {
                    console.log("读取jsonName error!");
                }
            });
        },
        getHot: function() {
            var _self = this;

            $.ajax({
                type: 'GET',
                url: reqHost + '/v1/article/hotlist',
                success: function(data) {
                    _self.hotList = data;
                    console.log(data);
                },
                error: function(data) {
                    console.log("读取jsonName error!");
                }
            });
        },
    },
});
vum.getData();
vum.getType();
vum.getHot();